fix(coordinator): pass config_entry to DataUpdateCoordinator on HA 2026.x+#268
Open
sslivins wants to merge 1 commit intobinarydev:mainfrom
Open
fix(coordinator): pass config_entry to DataUpdateCoordinator on HA 2026.x+#268sslivins wants to merge 1 commit intobinarydev:mainfrom
sslivins wants to merge 1 commit intobinarydev:mainfrom
Conversation
…__init__ Newer Home Assistant versions require config_entry to be set on the coordinator so async_config_entry_first_refresh can resolve the entry. Without it, reload after options change raised: ConfigEntryError: Detected code that uses async_config_entry_first_refresh, which is only supported for coordinators with a config entry Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Apr 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Small standalone fix - one of a few followups I'm sending alongside #267.
Newer Home Assistant versions require
config_entryto be set onDataUpdateCoordinatorsoasync_config_entry_first_refreshcan resolve the entry. Without it, reloading after an options change throws:Fix is one line in the
super().__init__call to passconfig_entry=config_entry.Independent of the OAuth work - just spotted while testing options-flow reload locally on HA 2026.x.
Take it or leave it, no worries either way.